<template>
	<view class="content">
		<my-nav></my-nav>
	</view>
</template>

<script>
	export default {
		provide() {
			return {
				scroll: this  //必须这样传才是响应式
			}
		},
		data() {
			return {
				scrollLength: 0
			}
		},
		methods: {
		
		},
		onPageScroll(e) { //nvue暂不支持滚动监听，可用bindingx代替,滚动距离
			this.scrollLength = e.scrollTop
			//console.log("滚动距离为：" + e.scrollTop);
		},
	}
</script>

<style lang="scss" scoped>
	.content{
		height: 200vh;
	}
</style>